package com.rk.sample;

import com.rk.dao.CustomerDao;
import com.rk.dao.DaoFactory;
import com.rk.entity.Customer;

import java.io.IOException;

public class AddCustomer_New {
    public static void main(String[] args) throws IOException {
        CustomerDao dao= DaoFactory.getCustomerDao();
        Customer customer = new Customer();


        customer.setName("sunhao");
        customer.setCity("henan");
        customer.setEmail("sunhao712@sina.cn");
        customer.setPhone("173447");
        dao.addCustomer(customer);
        System.out.println("---New Customer Added---");
    }
}
